{#
  Archetype: toplevel-secrets-v1
  
  Description:
    Swarm secrets definition from file source.
  
  Approach:
    - Only applies to swarm mode
    - Reads secret from file at deploy time
    - Secrets are encrypted in swarm
  
  Usage:
    Use with service-secrets-v1 for secure credential management.
    Create .env.secret file containing the secret value.
#}
{% if swarm_enabled %}
secrets:
  {{ secret_name }}:
    file: ./.env.secret
{% endif %}
